package com.hnkywl.sts.entity.organ;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：计划单位
 * 包:        com.hnkywl.sts.entity.organ
 * 类描述:    规格
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name="T_SYS_BGJHDW")
@Where(clause = "deleted!='1'")
public class Bgjhdw extends BaseEntity{
    @Id
    @SequenceGenerator(name = "seqBgjhdw", allocationSize = 1, sequenceName = "SEQ_SYS_BGJHDW")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqBgjhdw")
    private Long id;

    /**
     * 计划单位
     */
    @ManyToOne
    @JoinColumn(name="JHDW_ID")
    private Gsjg glqy;

    /**
     * 保供公司
     */
    @ManyToOne
    @JoinColumn(name="BGGS_ID")
    private Nbgs nbgs;

    /**
     * 保供部门
     */
    @ManyToOne
    @JoinColumn(name="BGBM_ID")
    private Nbbm bgbm;
    /**
     *  备注
     */

    private String bz;
    /**
     * 是否启用
     */
    private Boolean sfqy;


    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }

    public Boolean getSfqy() {
        return sfqy;
    }

    public void setSfqy(Boolean sfqy) {
        this.sfqy = sfqy;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Gsjg getGlqy() {
        return glqy;
    }

    public void setGlqy(Gsjg glqy) {
        this.glqy = glqy;
    }

    public Nbgs getNbgs() {
        return nbgs;
    }

    public void setNbgs(Nbgs nbgs) {
        this.nbgs = nbgs;
    }

    public Nbbm getBgbm() {
        return bgbm;
    }

    public void setBgbm(Nbbm bgbm) {
        this.bgbm = bgbm;
    }
}
